<!--
Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<div id="page-content" class="content" style="padding: 25px;">
    <div>
        <h1 class="heading-page">Modify Lab</h1>

        <div>
            <div class="form-row">
                <label for="textinputID-3a">Select lab: </label> <select
                    ng-model="selectedLab"
                    ng-change="selectedLabChange()"
                    ng-options="v for v in labs">
                </select>
            </div>
        </div>
        <br>

        <div ng-show="loadingLabs">
            <img src=" static/fusion/images/giphy.gif" />
        </div>

        <div class="Column" ng-if="oldName">
            <div class="form-row">
                <label for="textinputID-3a">Old name : </label> <input
                    ng-model="oldName" readonly></input>
            </div>
        </div>
        <br>

        <div class="Column" ng-if="oldSilo">
            <div class="form-row">
                <label for="textinputID-3a">Old silo : </label> <input
                    ng-model="oldSilo" readonly></input>
            </div>
        </div>
        <br>

        <div class="Column" ng-if="oldName">
            <div class="form-row">
                <label for="textinputID-3a">Define new lab name:
                </label> <input ng-model="newData.name"</input>
            </div>
        </div>
        <br>

        <div class="Column" ng-if="oldSilo">
            <div class="form-row">
                <label for="textinputID-3a">Define new lab silo:
                </label> <input ng-model="newData.silo"</input>
            </div>
        </div>
        <br>

        <div class="fn-ebz-container"
            style="position: relative; top: 25px;">
            <button href="javascript:void(0)" id="addbtn"
                style="bottom: -17px;" size="small"
                att-accessibility-click="13,32"
                class="btn btn-alt btn-small" ng-click="modify();">Modify</button>
        </div>
    </div>
</div>
